Skip to content

Comments

Fix windows readInput blocking call that disables ticking#22

Merged
meszmate merged 1 commit intomainfrom
fix/21-windowszigreadinput-is-a-blocking-call-which-disables-ticking
Feb 17, 2026
Merged

Fix windows readInput blocking call that disables ticking#22
meszmate merged 1 commit intomainfrom
fix/21-windowszigreadinput-is-a-blocking-call-which-disables-ticking

Conversation

@meszmate
Copy link
Owner

  • Use WaitForSingleObject with timeout before reading stdin on Windows
  • Return 0 on timeout instead of blocking, matching POSIX behavior

Closes #21

@meszmate meszmate linked an issue Feb 17, 2026 that may be closed by this pull request
@meszmate meszmate merged commit 6d1d129 into main Feb 17, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

windows.zig::readInput() is a blocking call which disables ticking

1 participant